From: Claudio Cambra Date: Thu, 23 Mar 2023 16:47:41 +0000 (+0100) Subject: Use AccountPtr in testpushnotifications X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~26^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=9da26d79bbbe4a1e58667a77a617d8001ee5d8cc;p=nextcloud-desktop.git Use AccountPtr in testpushnotifications Signed-off-by: Claudio Cambra --- diff --git a/test/testpushnotifications.cpp b/test/testpushnotifications.cpp index ee7e0c4fc..e8a2ab08c 100644 --- a/test/testpushnotifications.cpp +++ b/test/testpushnotifications.cpp @@ -257,8 +257,8 @@ private slots: QCOMPARE(connectionLostSpy.count(), 1); - auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); - QCOMPARE(accountSent, account.data()); + const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); + QCOMPARE(accountSent.data(), account.data()); } void testAccount_web_socket_authenticationFailed_emitNotificationsDisabled() @@ -272,8 +272,8 @@ private slots: // Now the pushNotificationsDisabled Signal should be emitted QCOMPARE(pushNotificationsDisabledSpy.count(), 1); - auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); - QCOMPARE(accountSent, account.data()); + const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value(); + QCOMPARE(accountSent.data(), account.data()); } void testPingTimeout_pingTimedOut_reconnect()